<f:view xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:aui="http://liferay.com/faces/aui"
	xmlns:c="http://java.sun.com/jsp/jstl/core" 
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:bridge="http://liferay.com/faces/bridge"
	xmlns:p="http://primefaces.org/ui" 
	xmlns:example-cc="http://java.sun.com/jsf/composite/example-cc"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	
	<h:form id="staffNavigationForm" styleClass="navigation staffNavigationForm" >
		<h:panelGroup styleClass="navigationMainLinks" >
			<ui:repeat var="key" value="#{staffNavigationController.firstLinkKeys}" >
				<h:panelGroup styleClass="navigationMainLinkDiv" rendered="#{staffNavigationController.hasPermission(key)}" >
					<p:commandLink value="#{key}" 
								actionListener="#{staffNavigationController.setNavigationPath}" 
								styleClass="navigationLink staffNavigationLink"
								immediate="true" ajax="false" >
						<f:attribute name="key" value="#{key}" />
					</p:commandLink>
				</h:panelGroup>
			</ui:repeat>
		</h:panelGroup>
		<h:panelGroup styleClass="navigationMainLinks" >
			<p:calendar value="#{weekReportController.chosenDate}" id="popupButtonCal" showOn="button" />  
		    <p:commandButton value="Zeige" actionListener="#{weekReportController.showWeekReport}" ajax="false" />
		</h:panelGroup>
		<h:panelGroup styleClass="navigationMainLinks" >
			<ui:repeat var="key" value="#{staffNavigationController.mainLinkKeys}" >
				<h:panelGroup styleClass="navigationMainLinkDiv" rendered="#{staffNavigationController.hasPermission(key)}" >
					<p:commandLink value="#{key}" 
								actionListener="#{staffNavigationController.setNavigationPath}" 
								styleClass="navigationLink staffNavigationLink"
								immediate="true" ajax="false" >
						<f:attribute name="key" value="#{key}" />
					</p:commandLink>
				</h:panelGroup>
			</ui:repeat>
		</h:panelGroup>
		<h:panelGroup styleClass="navigationReportLinks" >
			<ui:repeat var="key" value="#{staffNavigationController.reportLinkKeys}" >
				<h:panelGroup styleClass="navigationReportLinkDiv" rendered="#{staffNavigationController.hasPermission(key)}" >
					<h:outputText value="#{key}" />
					<p:commandLink actionListener="#{staffNavigationController.setNavigationPath}"
								styleClass="navigationLink staffNavigationLink"
								immediate="true" ajax="false" >
						<f:attribute name="key" value="#{key}" />
						<h:graphicImage value="/img/pdf-icon.png" />
					</p:commandLink>
				</h:panelGroup>
			</ui:repeat>
		</h:panelGroup>
	</h:form>
</f:view>